package db.dao;

import java.util.HashSet;
import java.util.Set;


/**
 * Dept entity. @author MyEclipse Persistence Tools
 */

public class Dept  implements java.io.Serializable {


    // Fields    

     private String deptid;
     private String deptname;
     private Set classeses = new HashSet(0);
     private Set students = new HashSet(0);
     private Set majors = new HashSet(0);
     private Set teachers = new HashSet(0);


    // Constructors

    /** default constructor */
    public Dept() {
    }

	/** minimal constructor */
    public Dept(String deptid, String deptname) {
        this.deptid = deptid;
        this.deptname = deptname;
    }
    
    /** full constructor */
    public Dept(String deptid, String deptname, Set classeses, Set students, Set majors, Set teachers) {
        this.deptid = deptid;
        this.deptname = deptname;
        this.classeses = classeses;
        this.students = students;
        this.majors = majors;
        this.teachers = teachers;
    }

   
    // Property accessors

    public String getDeptid() {
        return this.deptid;
    }
    
    public void setDeptid(String deptid) {
        this.deptid = deptid;
    }

    public String getDeptname() {
        return this.deptname;
    }
    
    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    public Set getClasseses() {
        return this.classeses;
    }
    
    public void setClasseses(Set classeses) {
        this.classeses = classeses;
    }

    public Set getStudents() {
        return this.students;
    }
    
    public void setStudents(Set students) {
        this.students = students;
    }

    public Set getMajors() {
        return this.majors;
    }
    
    public void setMajors(Set majors) {
        this.majors = majors;
    }

    public Set getTeachers() {
        return this.teachers;
    }
    
    public void setTeachers(Set teachers) {
        this.teachers = teachers;
    }
   








}